<?php if( ! defined('BASEPATH')) exit('No direct script access allowed');
/********************
 *@param function:Order WebApp 訂單wifi打印
 *@param datetime 2015-05-07
 *@param author abin
 ********************/
class Pay extends Lang_Controller {
	public function paydo(){
		 $config = array(
	        'business' => 'perry2@qq.com',
	        'return_url'=>'http://demo.pos.com/PayPal/return_url.php',
	        'notify_url'=>'http://demo.pos.com/PayPal/notify_url.php',
	        'driver'=>'paypal',
	    );
	    // echo dirname(dirname(__FILE__));
	    $this->load->library('payment',$config);
	    $pay = $this->payment->getDriver();
	    echo $pay->buildRequestForm();
	    var_dump($pay);
	    exit;
	}
	public function notify(){

	}
	public function return(){
		
	}

}